<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoModify"/>${org.orgName}</span></li>
			<li class="line">line</li>
        	<c:if test="${p:isPower('/organization/organizationRemove.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/organization/organizationRemove.shtml"/>?orgId=${org.orgId}" target="ajaxTodo" rel="orgShowPage"><span><spring:message code="search.btnRemove"/></span></a></li>
			</c:if>
		</ul>
	</div>
    <form id="orgaUpdateFrom" method="post" action="<c:url value="/organization/organizationModify.shtml"/>" onsubmit="return validateCallback(this,navTabAjaxDone);">
        <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">             
        	<tbody>
                <tr>
                	<td>所属上级：</td>
                    <td>
                        <input type="hidden" name="org_modify.orgIdParent" id="org_modify_orgIdParent" value="${parentOrg.orgId}"/>
                        <input type="hidden" name="org_modify.orgGradeParent" id="org_modify_orgGradeParent" value="${parentOrg.orgGrade}"/>
                        <input type="text" name="org_modify.orgNameParent" id="org_modify_orgNameParent" value="${parentOrg.orgName}" readonly="readonly"/>
                        <a class="btnLook" href="<c:url value="/organization/goOrganizationParentLookup.shtml"/>" lookupGroup="org_modify">选择组织机构</a>	
		                <a class="btnClean" href="javascript:;" onclick="$('#org_modify_orgIdParent').val('');$('#org_modify_orgGradeParent').val('');$('#org_modify_orgNameParent').val('');">清空</a>
                    </td>
                    <td>机构类型：</td>
                    <td>
                        <select class="required" id="org_modify_orgScope" name="org_modify_orgScope">
                        	<option value="">--请选择--</option>
							<c:forEach items="${scopeList}" var="atrScope" varStatus="index">
                         	<option value="${atrScope.atrValue}" <c:if test="${atrScope.atrValue==org.orgScope}">selected="selected"</c:if>>${atrScope.atrName}</option>
                         	</c:forEach>
						</select>
                    </td>
                </tr>
                <tr>
                    <td>机构名称：</td>
                    <td>
                        <input type="hidden" name="org_modify_orgId" id="org_modify_orgId" value="${org.orgId}"/>
                        <input type="text" class="required" name="org_modify_orgName" id="org_modify_orgName" value="${org.orgName}" maxlength="20"/>
                    </td>
                    <td>机构编码：</td>
                    <td>
                        <input type="text" name="org_add_orgCode" id="org_add_orgCode" value="${org.orgCode}" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>机构职能：</td>
                    <td colspan="3">
                        <input type="text" name="org_modify_orgFunction" id="org_modify_orgFunction" value="${org.orgFunction}" maxlength="50"/>
                    </td>
                </tr>
                <tr>
                    <td>联系地址：</td>
                    <td colspan="3">
                        <input type="text" name="org_modify_orgAddress" id="org_modify_orgAddress" value="${org.orgAddress}" maxlength="50"/>
                    </td>
                </tr>
                <tr>
                    <td>联系邮编：</td>
                    <td>
                        <input type="text" name="org_modify_orgZip" id="org_modify_orgZip" value="${org.orgZip}" maxlength="6"/>
                    </td>
                    <td>联系电话：</td>
                    <td>
                        <input class="phone" type="text" name="org_modify_orgPhone" id="org_modify_orgPhone" value="${org.orgPhone}" maxlength="13"/>
                    </td>
                </tr>
                <tr>
                	<td>所属地区：</td>
                    <td>
                        <input type="hidden" name="org_modify.areaId" id="org_modify_areaId" value="${org.areaId}"/>
                        <input type="text" name="org_modify.areaName" id="org_modify_areaName" value="${org.areaName}" readonly="readonly"/>
                    	<a class="btnLook" href="<c:url value="/organization/goAreaLookup.shtml"/>" lookupGroup="org_modify">选择所属地区</a>
		                <a class="btnClean" href="javascript:;" onclick="$('#org_modify_areaId').val('');$('#org_modify_areaName').val('');">清空</a>
                   	</td>
                    <td>显示排序</td>
                    <td>
                        <input type="text" name="org_modify_orgSort" id="org_modify_orgSort" value="${org.orgSort}" maxlength="3"/>
                    </td>
                </tr>
            </tbody>
    	</table>
		<div class="panelBar">
        	<div class="buttonActive">
        	<c:if test="${p:isPower('/organization/organizationModify.shtml',sessionScope.loginAccount)}">
           	<div class="buttonContent"><button type="submit"><spring:message code="modify.btnModify"/></button></div>
           	</c:if>
           	</div>
		</div>
    </form>
</div>